﻿<Window x:Class="KDGIPReporter.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:KDGIPReporter"
        Title="KDG IP Reporter" Height="174.525" Width="300"
        WindowStartupLocation="CenterScreen">
    <Window.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="Black" Offset="0"/>
            <GradientStop Color="#FFD7E6FF" Offset="1"/>
        </LinearGradientBrush>
    </Window.Background>
    <Window.DataContext>
        <local:IPViewModel />
    </Window.DataContext>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Label Grid.Row="0" Grid.Column="0" Content="My Local IP:" Foreground="WhiteSmoke" Margin="20,18,0,0" 
               FontSize="16" FontWeight="SemiBold" />
        <TextBox Grid.Row="0" Grid.Column="1" Margin="15,18,10,5" Width="130" IsReadOnly="True" 
                 TextAlignment="Center" Text="{Binding Path=LocalIP, Mode=OneTime}" />

        <Label Grid.Row="1" Grid.Column="0" Content="External IP:" Foreground="WhiteSmoke" Margin="20,18,0,0" 
               FontSize="16" FontWeight="SemiBold" />
        <TextBox Grid.Row="1" Grid.Column="1" Margin="15,18,10,5" Width="130" IsReadOnly="True"
                 TextAlignment="Center" Text="{Binding Path=PublicIP, Mode=OneTime}" />
        <!--<Button Grid.Row="2" Grid.ColumnSpan="2" Margin="120,5,120,5" Background="Transparent"
                BorderBrush="Transparent" Style="{DynamicResource buttons}" Command="{Binding RefreshCommnd}">
            <DockPanel>
                <Image Source="../Resources/refresh.png" />
            </DockPanel>
        </Button>-->
    </Grid>
</Window>
